// 加载 views 目录下的所有组件
const views = import.meta.glob('../views/*/*.tsx')

export function dynamicComponent (componentPath: string): any {
  const fullPath = `../views/${componentPath}.tsx`

  return views[fullPath]
}
